package com.gj.costprice.mapper;

import com.yyq.costprice.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.Valid;
import java.util.List;

/**
 * Created by Administrator on 2021-06-28.
 */
@Mapper
public interface CostPriceMapper {


    List<CostPriceVo> queryByPage(@Valid CostPriceSelectVo costPriceSelectVo);

    int count(@Valid CostPriceSelectVo costPriceSelectVo);

    int queryByCode(@Param("legalPlantCode") String legalPlantCode, @Param("materialCode") String materialCode);

    int add(CostPriceVo costPriceVo);

    List<String> queryPlantListByLegalPersonCode(String legalPersonCode);

    List<Taxtype> queryAllTaxType();

    List<SparePartVo> page1(@Valid SparePartVo sparePartVo);

    int count1(@Valid SparePartVo sparePartVo);

    List<PriceClassVo> queryPriceClass();
}